#include "ResourceManager.h"

ResourceManager* ResourceManager::instance = 0;

ResourceManager::ResourceManager()
{
}

ResourceManager::~ResourceManager()
{
}

ResourceManager* ResourceManager::getInstance(){
	if(instance == 0)
		instance = new ResourceManager;

	return instance;
}

void ResourceManager::loadResource(){
	spriteBatchNode = CCSpriteBatchNode::create(SPRITE_PATH"SpriteSheet.png");

	CCSpriteFrameCache* frameCache = CCSpriteFrameCache::sharedSpriteFrameCache();
	frameCache->addSpriteFramesWithFile(SPRITE_PATH"SpriteSheet.plist");
}

CCSpriteBatchNode* ResourceManager::getSpriteBatchNode(){
	return spriteBatchNode;
}